Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
Proma 支持多工作区,用户通常会为不同项目或场景各开一个工作区。对于许多用户——尤其是从其他 AI Agent 工具迁移过来的新用户——他们不是从零开始,可能需要在多个工作区里配置同一批 Skill。
在此之前,没有显式的跨工作区 Skill 共享机制。如果某个 Skill 在多个工作区都要用,用户只能:
~/.proma/目录,把 Skill 文件夹逐个复制过去这两种方式对新用户都不友好,增加了上手成本,不利于留存。
此外,当用户在某个工作区新建了一个 Skill,也没有统一路径让它沉淀到全局、供其他工作区后续复用。
本次改动
核心能力
~/.proma/default-skills/中的 Skill 一键安装到当前工作区SkillMeta补充来源字段,区分内置 bundled Skill 与用户新建 Skill,避免不同工作区争抢覆盖同名全局 Skill文件变更
packages/shared/src/types/agent.tsGET_GLOBAL_SKILLS/INSTALL_GLOBAL_SKILLIPC 通道常量apps/electron/src/main/lib/agent-workspace-manager.tsgetGlobalSkills()/installGlobalSkill()函数apps/electron/src/main/lib/workspace-watcher.tsapps/electron/src/main/lib/config-paths.tsapps/electron/src/main/lib/agent-prompt-builder.tsapps/electron/src/main/ipc.tsapps/electron/src/preload/index.tsgetGlobalSkills/installGlobalSkill到渲染进程apps/electron/src/renderer/components/settings/AgentSettings.tsx设计约定
验证
apps/electron: tsc --noEmit✅packages/shared: tsc --noEmit✅邮箱:1756804740@qq.com